﻿
function loginPost(_model, _returnUrl) {
    debugger;
$.ajax(
   {

       url:  'Account/Login',
       type: 'POST',
       dataType: 'json',
       data: {
           model:_model,
           ReturnUrl: _returnUrl
       },
       success: function (data) {
           debugger;
           if (data.success) {
              
               window.parent.location = data.url;
                           
           }
       }, error: function (request, error) {
                       
           // Handle Error
           alert(error + '\n Error Detect in this Script ,loginPost');
       }
   }
);
}






